/**
 * Created by win7 on 2017/3/17.
 */
import React from "react";
//所有的权限

class Companysaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,1)} />企业管理查阅权
            </label>
        )
    }
}
class Companyoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        //console.log(this.props.checkChange)
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,2)}/>企业管理操作权
            </label>
        )
    }
}

class Limitsaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,3)}/>权限设置查阅权
            </label>
        )
    }
}
class Limitoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,4)}/>权限设置操作权
            </label>
        )
    }
}

class Usersaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,5)}/>企业管理查阅权
            </label>
        )
    }
}

class Useroperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,6)}/>用户管理操作权
            </label>
        )
    }
}

class Ordersaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,7)}/>订单管理查阅权
            </label>
        )
    }
}

class Orderoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,8)}/>订单管理操作权
            </label>
        )
    }
}
class Productsaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,9)}/>产品管理查阅权
            </label>
        )
    }
}

class Productoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,10)}/>产品管理操作权
            </label>
        )
    }
}
class Peoplesaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,11)}/>人员管理查阅权
            </label>
        )
    }
}
class Peopleoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,12)}/>人员管理操作权
            </label>
        )
    }
}
class Rolesaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,13)}/>角色管理查阅权
            </label>
        )
    }
}
class Roleoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,14)}/>角色管理操作权
            </label>
        )
    }
}

class Accountsaw extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,15)}/>结算查阅权
            </label>
        )
    }
}
class Accountoperate extends React.Component{
    constructor(props){
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render(){
        return(
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,16)}/>结算操作权
            </label>
        )
    }
}
class Moneysaw extends React.Component {
    constructor(props) {
        super(props)
    }
    oncheck(pid,e){
        this.props.checkChange(pid,e.target.checked)
    }
    render() {
        return (
            <label>
                <input type="checkbox" onChange={this.oncheck.bind(this,17)}/>贷款查阅权
            </label>
        )
    }
}

export {Companysaw,Companyoperate,Limitsaw,Limitoperate,Usersaw,Useroperate,Ordersaw,Orderoperate,Productsaw,Peopleoperate,
    Productoperate,Peoplesaw,Rolesaw,Roleoperate,Accountsaw,Accountoperate,Moneysaw}

